"""
 @Time    : 2022/7/15 12:10
 @Author  : Dylan
 @FileName: question_form.py
 @Software: PyCharm
 @Cnblogs ：https://blog.csdn.net/Clownlaughatyou
 """
from django import forms

from App.bootstrap import BootStrapModelForm
from App.models import QuestionSubmission


class QuestionCreatForm(BootStrapModelForm):
    question = forms.CharField(
        label='问题内容',
        widget=forms.TextInput(attrs={
            'placeholder': '问题内容',
        })
    )

    class Meta:
        model = QuestionSubmission
        fields = '__all__'
